Optimal. Leaf size=71 \[ -\frac {2^{2+p} d \left (1+\frac {e x}{d}\right )^{-1-p} \left (d^2-e^2 x^2\right )^{1+p} \, _2F_1\left (-2-p,1+p;2+p;\frac {d-e x}{2 d}\right )}{e (1+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {692, 71}
\begin {gather*} -\frac {d 2^{p+2} \left (\frac {e x}{d}+1\right )^{-p-1} \left (d^2-e^2 x^2\right )^{p+1} \, _2F_1\left (-p-2,p+1;p+2;\frac {d-e x}{2 d}\right )}{e (p+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 71
Rule 692
Rubi steps
\begin {align*} \int (d+e x)^2 \left (d^2-e^2 x^2\right )^p \, dx &=\left (d (d-e x)^{-1-p} \left (1+\frac {e x}{d}\right )^{-1-p} \left (d^2-e^2 x^2\right )^{1+p}\right ) \int (d-e x)^p \left (1+\frac {e x}{d}\right )^{2+p} \, dx\\ &=-\frac {2^{2+p} d \left (1+\frac {e x}{d}\right )^{-1-p} \left (d^2-e^2 x^2\right )^{1+p} \, _2F_1\left (-2-p,1+p;2+p;\frac {d-e x}{2 d}\right )}{e (1+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 134, normalized size = 1.89 \begin {gather*} \frac {\left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \left (-3 d \left (d^2-e^2 x^2\right ) \left (1-\frac {e^2 x^2}{d^2}\right )^p+3 d^2 e (1+p) x \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};\frac {e^2 x^2}{d^2}\right )+e^3 (1+p) x^3 \, _2F_1\left (\frac {3}{2},-p;\frac {5}{2};\frac {e^2 x^2}{d^2}\right )\right )}{3 e (1+p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \left (e x +d \right )^{2} \left (-e^{2} x^{2}+d^{2}\right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.80, size = 124, normalized size = 1.75 \begin {gather*} d^{2} d^{2 p} x {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, - p \\ \frac {3}{2} \end {matrix}\middle | {\frac {e^{2} x^{2} e^{2 i \pi }}{d^{2}}} \right )} + 2 d e \left (\begin {cases} \frac {x^{2} \left (d^{2}\right )^{p}}{2} & \text {for}\: e^{2} = 0 \\- \frac {\begin {cases} \frac {\left (d^{2} - e^{2} x^{2}\right )^{p + 1}}{p + 1} & \text {for}\: p \neq -1 \\\log {\left (d^{2} - e^{2} x^{2} \right )} & \text {otherwise} \end {cases}}{2 e^{2}} & \text {otherwise} \end {cases}\right ) + \frac {d^{2 p} e^{2} x^{3} {{}_{2}F_{1}\left (\begin {matrix} \frac {3}{2}, - p \\ \frac {5}{2} \end {matrix}\middle | {\frac {e^{2} x^{2} e^{2 i \pi }}{d^{2}}} \right )}}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (d^2-e^2\,x^2\right )}^p\,{\left (d+e\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________